package com.panfeng.xcloud.common.core.web.vo;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 *
 * 错误响应
 *
 * @author xiaobo
 * @version 1.0
 * @since 2018-12-28
 */
@Getter
@Setter
public class ErrorResponseVO implements Serializable {
    private static final long serialVersionUID = 1L;

    protected String code;
    protected String message;

    public ErrorResponseVO(String code, String message) {
        if (code == null || message == null) {
            throw new NullPointerException("neither of the code or message is null.");
        }
        this.code = code;
        this.message = message;
    }

}
